<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Mail</title>
<link rel="stylesheet" th:href="@{/easy/css/bootstrap.css}" />
<link rel="stylesheet" th:href="@{/icon/css/font-awesome.min.css}" />
</head>
<body class="bg-c">
	<div class="container-fluid">
		<div class="row">
			<div class="col text-center bg-primary text-white">输入联系人</div>
		</div>
		<div class="row mt-3">
			<div class="col-4"></div>
			<div class="col-8">
				<div class="form-inline">
					<input id="account" class="form-control form-control-sm" />
					<button class="btn btn-sm btn-primary ml-2" onclick="add()">添加</button>
				</div>
			</div>
		</div>
	</div>
	<!-- js -->
	<script th:src="@{/easy/js/jquery.js}"></script>
	<script th:src="@{/easy/js/avalon.js}"></script>
	<script th:src="@{/layer/layer.js}"></script>
	<script>
		//-- add
		function add() {
			$.post("/mona/Contacts/addCon", {
				account : $("#account").val()
			}, function(data) {
				layer.msg(data);
				$("#account").val("");
			});
		}
	</script>
</body>
</html>